<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/4/15
 * Time: 18:08
 */

namespace common\sources\read\taskorderlog;


use common\models\craftsman\TaskOrderLog;

class BuyTaskOrderLogAccess implements IBuyTaskOrderLogAccess
{
    public function getTaskOrderLog($task_order_id)
    {
        return TaskOrderLog::find()
                ->select("id,status_remark,remark,operator,create_time,task_order_id,task_status")
                ->where(['task_order_id' => $task_order_id])
                ->orderBy("create_time asc")
                ->asArray()
                ->all();
    }
}